package com.jn.exam.paperConsumer.service;


import com.jn.exam.paperConsumer.entity.StudentConnection;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 江南大学1033190417
 * @date 2022/3/6 15:55
 */
@Component
@FeignClient(value = "service-exam")
public interface ExamService {

    @ResponseBody
    @PostMapping("/exam/exam/updateExamStudentConnectionForFeign")
    public boolean updateExamStudentConnectionForFeign(@RequestBody StudentConnection studentConnection);

}
